package cn.hzking.gjmall.net.base;

/**
 * Created by Administrator on 2018/1/20.解析实体类
 */

public class BaseEntity {
    //测试
    private static String SUCCESS_CODE="success";//成功的code
    private int errorCode;
    private String errorMsg;
    private String result;


    public boolean isSuccess(){
        return SUCCESS_CODE.equals(getResult());
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

}
